import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  children: [{
    path: '',
    name: 'employees',
    component: () => import('@/views/employees'),
    meta: { title: '员工管理', icon: 'user' }
  }, {
    // path 在 children 里面的时候, 不要写 / ;  /employees/detail  / detail
    path: 'detail',
    name: 'detail',
    hidden: true, // 将 hidden 属性设置为 true 就不会在左侧菜单栏展示
    component: () => import('@/views/employees/detail')
  }]
}
